{"ast":null,"code":"import classNames from 'classnames';\nimport { PickerPanel as RCPickerPanel } from 'rc-picker';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport CalendarHeader from './Header';\nimport enUS from './locale/en_US';\nimport useStyle from './style';\nfunction generateCalendar(generateConfig) {\n  function isSameYear(date1, date2) {\n    return date1 && date2 && generateConfig.getYear(date1) === generateConfig.getYear(date2);\n  }\n  function isSameMonth(date1, date2) {\n    return isSameYear(date1, date2) && generateConfig.getMonth(date1) === generateConfig.getMonth(date2);\n  }\n  function isSameDate(date1, date2) {\n    return isSameMonth(date1, date2) && generateConfig.getDate(date1) === generateConfig.getDate(date2);\n  }\n  const Calendar = props => {\n    const {\n      prefixCls: customizePrefixCls,\n      className,\n      style,\n      dateFullCellRender,\n      dateCellRender,\n      monthFullCellRender,\n      monthCellRender,\n      headerRender,\n      value,\n      defaultValue,\n      disabledDate,\n      mode,\n      validRange,\n      fullscreen = true,\n      onChange,\n      onPanelChange,\n      onSelect\n    } = props;\n    const {\n      getPrefixCls,\n      direction\n    } = React.useContext(ConfigContext);\n    const prefixCls = getPrefixCls('picker', customizePrefixCls);\n    const calendarPrefixCls = `${prefixCls}-calendar`;\n    const [wrapSSR, hashId] = useStyle(prefixCls);\n    const today = generateConfig.getNow();\n    // ====================== State =======================\n    // Value\n    const [mergedValue, setMergedValue] = useMergedState(() => value || generateConfig.getNow(), {\n      defaultValue,\n      value\n    });\n    // Mode\n    const [mergedMode, setMergedMode] = useMergedState('month', {\n      value: mode\n    });\n    const panelMode = React.useMemo(() => mergedMode === 'year' ? 'month' : 'date', [mergedMode]);\n    // Disabled Date\n    const mergedDisabledDate = React.useCallback(date => {\n      const notInRange = validRange ? generateConfig.isAfter(validRange[0], date) || generateConfig.isAfter(date, validRange[1]) : false;\n      return notInRange || !!(disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate(date));\n    }, [disabledDate, validRange]);\n    // ====================== Events ======================\n    const triggerPanelChange = (date, newMode) => {\n      onPanelChange === null || onPanelChange === void 0 ? void 0 : onPanelChange(date, newMode);\n    };\n    const triggerChange = date => {\n      setMergedValue(date);\n      if (!isSameDate(date, mergedValue)) {\n        // Trigger when month panel switch month\n        if (panelMode === 'date' && !isSameMonth(date, mergedValue) || panelMode === 'month' && !isSameYear(date, mergedValue)) {\n          triggerPanelChange(date, mergedMode);\n        }\n        onChange === null || onChange === void 0 ? void 0 : onChange(date);\n      }\n    };\n    const triggerModeChange = newMode => {\n      setMergedMode(newMode);\n      triggerPanelChange(mergedValue, newMode);\n    };\n    const onInternalSelect = date => {\n      triggerChange(date);\n      onSelect === null || onSelect === void 0 ? void 0 : onSelect(date);\n    };\n    // ====================== Locale ======================\n    const getDefaultLocale = () => {\n      const {\n        locale\n      } = props;\n      const result = Object.assign(Object.assign({}, enUS), locale);\n      result.lang = Object.assign(Object.assign({}, result.lang), (locale || {}).lang);\n      return result;\n    };\n    // ====================== Render ======================\n    const dateRender = React.useCallback(date => {\n      if (dateFullCellRender) {\n        return dateFullCellRender(date);\n      }\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameDate(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, String(generateConfig.getDate(date)).padStart(2, '0')), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, dateCellRender && dateCellRender(date)));\n    }, [dateFullCellRender, dateCellRender]);\n    const monthRender = React.useCallback((date, locale) => {\n      if (monthFullCellRender) {\n        return monthFullCellRender(date);\n      }\n      const months = locale.shortMonths || generateConfig.locale.getShortMonths(locale.locale);\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameMonth(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, months[generateConfig.getMonth(date)]), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, monthCellRender && monthCellRender(date)));\n    }, [monthFullCellRender, monthCellRender]);\n    return wrapSSR( /*#__PURE__*/React.createElement(LocaleReceiver, {\n      componentName: \"Calendar\",\n      defaultLocale: getDefaultLocale\n    }, contextLocale => /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(calendarPrefixCls, {\n        [`${calendarPrefixCls}-full`]: fullscreen,\n        [`${calendarPrefixCls}-mini`]: !fullscreen,\n        [`${calendarPrefixCls}-rtl`]: direction === 'rtl'\n      }, className, hashId),\n      style: style\n    }, headerRender ? headerRender({\n      value: mergedValue,\n      type: mergedMode,\n      onChange: onInternalSelect,\n      onTypeChange: triggerModeChange\n    }) : /*#__PURE__*/React.createElement(CalendarHeader, {\n      prefixCls: calendarPrefixCls,\n      value: mergedValue,\n      generateConfig: generateConfig,\n      mode: mergedMode,\n      fullscreen: fullscreen,\n      locale: contextLocale.lang,\n      validRange: validRange,\n      onChange: onInternalSelect,\n      onModeChange: triggerModeChange\n    }), /*#__PURE__*/React.createElement(RCPickerPanel, {\n      value: mergedValue,\n      prefixCls: prefixCls,\n      locale: contextLocale.lang,\n      generateConfig: generateConfig,\n      dateRender: dateRender,\n      monthCellRender: date => monthRender(date, contextLocale.lang),\n      onSelect: onInternalSelect,\n      mode: panelMode,\n      picker: panelMode,\n      disabledDate: mergedDisabledDate,\n      hideHeader: true\n    }))));\n  };\n  return Calendar;\n}\nexport default generateCalendar;","map":{"version":3,"names":["classNames","PickerPanel","RCPickerPanel","useMergedState","React","ConfigContext","LocaleReceiver","CalendarHeader","enUS","useStyle","generateCalendar","generateConfig","isSameYear","date1","date2","getYear","isSameMonth","getMonth","isSameDate","getDate","Calendar","props","prefixCls","customizePrefixCls","className","style","dateFullCellRender","dateCellRender","monthFullCellRender","monthCellRender","headerRender","value","defaultValue","disabledDate","mode","validRange","fullscreen","onChange","onPanelChange","onSelect","getPrefixCls","direction","useContext","calendarPrefixCls","wrapSSR","hashId","today","getNow","mergedValue","setMergedValue","mergedMode","setMergedMode","panelMode","useMemo","mergedDisabledDate","useCallback","date","notInRange","isAfter","triggerPanelChange","newMode","triggerChange","triggerModeChange","onInternalSelect","getDefaultLocale","locale","result","Object","assign","lang","dateRender","createElement","String","padStart","monthRender","months","shortMonths","getShortMonths","componentName","defaultLocale","contextLocale","type","onTypeChange","onModeChange","picker","hideHeader"],"sources":["/data/messenger.client/node_modules/antd/es/calendar/generateCalendar.js"],"sourcesContent":["import classNames from 'classnames';\nimport { PickerPanel as RCPickerPanel } from 'rc-picker';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport CalendarHeader from './Header';\nimport enUS from './locale/en_US';\nimport useStyle from './style';\nfunction generateCalendar(generateConfig) {\n  function isSameYear(date1, date2) {\n    return date1 && date2 && generateConfig.getYear(date1) === generateConfig.getYear(date2);\n  }\n  function isSameMonth(date1, date2) {\n    return isSameYear(date1, date2) && generateConfig.getMonth(date1) === generateConfig.getMonth(date2);\n  }\n  function isSameDate(date1, date2) {\n    return isSameMonth(date1, date2) && generateConfig.getDate(date1) === generateConfig.getDate(date2);\n  }\n  const Calendar = props => {\n    const {\n      prefixCls: customizePrefixCls,\n      className,\n      style,\n      dateFullCellRender,\n      dateCellRender,\n      monthFullCellRender,\n      monthCellRender,\n      headerRender,\n      value,\n      defaultValue,\n      disabledDate,\n      mode,\n      validRange,\n      fullscreen = true,\n      onChange,\n      onPanelChange,\n      onSelect\n    } = props;\n    const {\n      getPrefixCls,\n      direction\n    } = React.useContext(ConfigContext);\n    const prefixCls = getPrefixCls('picker', customizePrefixCls);\n    const calendarPrefixCls = `${prefixCls}-calendar`;\n    const [wrapSSR, hashId] = useStyle(prefixCls);\n    const today = generateConfig.getNow();\n    // ====================== State =======================\n    // Value\n    const [mergedValue, setMergedValue] = useMergedState(() => value || generateConfig.getNow(), {\n      defaultValue,\n      value\n    });\n    // Mode\n    const [mergedMode, setMergedMode] = useMergedState('month', {\n      value: mode\n    });\n    const panelMode = React.useMemo(() => mergedMode === 'year' ? 'month' : 'date', [mergedMode]);\n    // Disabled Date\n    const mergedDisabledDate = React.useCallback(date => {\n      const notInRange = validRange ? generateConfig.isAfter(validRange[0], date) || generateConfig.isAfter(date, validRange[1]) : false;\n      return notInRange || !!(disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate(date));\n    }, [disabledDate, validRange]);\n    // ====================== Events ======================\n    const triggerPanelChange = (date, newMode) => {\n      onPanelChange === null || onPanelChange === void 0 ? void 0 : onPanelChange(date, newMode);\n    };\n    const triggerChange = date => {\n      setMergedValue(date);\n      if (!isSameDate(date, mergedValue)) {\n        // Trigger when month panel switch month\n        if (panelMode === 'date' && !isSameMonth(date, mergedValue) || panelMode === 'month' && !isSameYear(date, mergedValue)) {\n          triggerPanelChange(date, mergedMode);\n        }\n        onChange === null || onChange === void 0 ? void 0 : onChange(date);\n      }\n    };\n    const triggerModeChange = newMode => {\n      setMergedMode(newMode);\n      triggerPanelChange(mergedValue, newMode);\n    };\n    const onInternalSelect = date => {\n      triggerChange(date);\n      onSelect === null || onSelect === void 0 ? void 0 : onSelect(date);\n    };\n    // ====================== Locale ======================\n    const getDefaultLocale = () => {\n      const {\n        locale\n      } = props;\n      const result = Object.assign(Object.assign({}, enUS), locale);\n      result.lang = Object.assign(Object.assign({}, result.lang), (locale || {}).lang);\n      return result;\n    };\n    // ====================== Render ======================\n    const dateRender = React.useCallback(date => {\n      if (dateFullCellRender) {\n        return dateFullCellRender(date);\n      }\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameDate(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, String(generateConfig.getDate(date)).padStart(2, '0')), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, dateCellRender && dateCellRender(date)));\n    }, [dateFullCellRender, dateCellRender]);\n    const monthRender = React.useCallback((date, locale) => {\n      if (monthFullCellRender) {\n        return monthFullCellRender(date);\n      }\n      const months = locale.shortMonths || generateConfig.locale.getShortMonths(locale.locale);\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(`${prefixCls}-cell-inner`, `${calendarPrefixCls}-date`, {\n          [`${calendarPrefixCls}-date-today`]: isSameMonth(today, date)\n        })\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-value`\n      }, months[generateConfig.getMonth(date)]), /*#__PURE__*/React.createElement(\"div\", {\n        className: `${calendarPrefixCls}-date-content`\n      }, monthCellRender && monthCellRender(date)));\n    }, [monthFullCellRender, monthCellRender]);\n    return wrapSSR( /*#__PURE__*/React.createElement(LocaleReceiver, {\n      componentName: \"Calendar\",\n      defaultLocale: getDefaultLocale\n    }, contextLocale => /*#__PURE__*/React.createElement(\"div\", {\n      className: classNames(calendarPrefixCls, {\n        [`${calendarPrefixCls}-full`]: fullscreen,\n        [`${calendarPrefixCls}-mini`]: !fullscreen,\n        [`${calendarPrefixCls}-rtl`]: direction === 'rtl'\n      }, className, hashId),\n      style: style\n    }, headerRender ? headerRender({\n      value: mergedValue,\n      type: mergedMode,\n      onChange: onInternalSelect,\n      onTypeChange: triggerModeChange\n    }) : /*#__PURE__*/React.createElement(CalendarHeader, {\n      prefixCls: calendarPrefixCls,\n      value: mergedValue,\n      generateConfig: generateConfig,\n      mode: mergedMode,\n      fullscreen: fullscreen,\n      locale: contextLocale.lang,\n      validRange: validRange,\n      onChange: onInternalSelect,\n      onModeChange: triggerModeChange\n    }), /*#__PURE__*/React.createElement(RCPickerPanel, {\n      value: mergedValue,\n      prefixCls: prefixCls,\n      locale: contextLocale.lang,\n      generateConfig: generateConfig,\n      dateRender: dateRender,\n      monthCellRender: date => monthRender(date, contextLocale.lang),\n      onSelect: onInternalSelect,\n      mode: panelMode,\n      picker: panelMode,\n      disabledDate: mergedDisabledDate,\n      hideHeader: true\n    }))));\n  };\n  return Calendar;\n}\nexport default generateCalendar;"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,SAASC,WAAW,IAAIC,aAAa,QAAQ,WAAW;AACxD,OAAOC,cAAc,MAAM,iCAAiC;AAC5D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,aAAa,QAAQ,oBAAoB;AAClD,OAAOC,cAAc,MAAM,0BAA0B;AACrD,OAAOC,cAAc,MAAM,UAAU;AACrC,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,QAAQ,MAAM,SAAS;AAC9B,SAASC,gBAAgB,CAACC,cAAc,EAAE;EACxC,SAASC,UAAU,CAACC,KAAK,EAAEC,KAAK,EAAE;IAChC,OAAOD,KAAK,IAAIC,KAAK,IAAIH,cAAc,CAACI,OAAO,CAACF,KAAK,CAAC,KAAKF,cAAc,CAACI,OAAO,CAACD,KAAK,CAAC;EAC1F;EACA,SAASE,WAAW,CAACH,KAAK,EAAEC,KAAK,EAAE;IACjC,OAAOF,UAAU,CAACC,KAAK,EAAEC,KAAK,CAAC,IAAIH,cAAc,CAACM,QAAQ,CAACJ,KAAK,CAAC,KAAKF,cAAc,CAACM,QAAQ,CAACH,KAAK,CAAC;EACtG;EACA,SAASI,UAAU,CAACL,KAAK,EAAEC,KAAK,EAAE;IAChC,OAAOE,WAAW,CAACH,KAAK,EAAEC,KAAK,CAAC,IAAIH,cAAc,CAACQ,OAAO,CAACN,KAAK,CAAC,KAAKF,cAAc,CAACQ,OAAO,CAACL,KAAK,CAAC;EACrG;EACA,MAAMM,QAAQ,GAAGC,KAAK,IAAI;IAC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